package com.example.consumer_order_feign_disable_special.feign;

import com.example.consumer_order_feign_disable_special.model.UserInf;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "eureka-user",configuration = DisableFeignConfiguration.class)
//@FeignClient(name = "eureka-user",fallback = FeignFallback.class)
@Primary
public interface UserFeign {

    @RequestMapping("/user/getById")
    @ResponseBody
    UserInf getById(@RequestParam("id") String id);
}
